package com.smiier.skin.net;

import java.util.ArrayList;

import android.content.Context;
import cn.o.app.io.INoProguard;
import cn.o.app.json.JsonDate;
import cn.o.app.net.NetTask;

import com.smiier.skin.net.DoctorTreatmentProjectListTask.DoctorTreatmentProjectItem;
import com.smiier.skin.net.TreatmentProjectListTask.TreatmentProjectListRequest;
import com.smiier.skin.net.TreatmentProjectListTask.TreatmentProjectListResponse;
import com.smiier.skin.util.GlobalSettings;

/*
 * 治疗项目列表
 */
public class TreatmentProjectListTask extends
		NetTask<TreatmentProjectListRequest, TreatmentProjectListResponse> {
	public static class TreatmentProjectListRequest extends ORequest {
		public String category;
	}

	public static class TreatmentProjectListResponse extends
			ArrayList<DoctorTreatmentProjectItem> implements INoProguard {

	}

	public static class TreatmentProjectItem extends DoctorTreatmentProjectItem {

		public String category;
		public int down_payment;
		public String basic_description;
		public String other_description;
		public String cuser;// 患者id
		public JsonDate ctime;

	}

	@Override
	public void setContext(Context context) {
		super.setContext(context);
		mUrl = GlobalSettings.SERVER_URL_TREATMENT
				+ "Client/TreatmentProject/projectList";
		mRequestMethod = METHOD_POST;
	}

}
